﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;


namespace Entity
{
    public class Image
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Tag { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Keyword { get; set; }
        public string Ord { get; set; }
        public string Active { get; set; }
        public string Index { get; set; }
        public string Lang { get; set; }
        public string GroupImageId { get; set; }
        public string File { get; set; }
        public Image ImageIDataReader(IDataReader dr)
        {
            return new Image
                       {
                           Id = Convert.ToString(dr["Id"]),
                           Name = Convert.ToString(dr["Name"]),
                           Tag = Convert.ToString(dr["Tag"]),
                           Title = Convert.ToString(dr["Title"]),
                           Description = Convert.ToString(dr["Description"]),
                           Keyword = Convert.ToString(dr["Keyword"]),
                           Ord = Convert.ToString(dr["Ord"]),
                           Active = Convert.ToString(dr["Active"]),
                           Index = Convert.ToString(dr["Index"]),
                           Lang = Convert.ToString(dr["Lang"]),
                           GroupImageId = Convert.ToString(dr["GroupImageId"]),
                           File = Convert.ToString(dr["File"]),
                       };
        }
    }
}
